<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue的起步和插件</title>
</head>
<body>
    <div id="app">
        {{ msg }}
        <h2>{{ AAA() }}</h2>
    </div>
        <!--1、引包-->
    <script src="./vue.js"></script>
    <script>
        // console.log(Vue);

        // 2、初始化
        new Vue({
            el: "#app",
            //数据
            data: {
                msg: 'hello Vue'
            },
            // 方法
            methods: {
                AAA(){
                    return this.msg + ' ' + 'AAAAAA'
                }
            }
        });

    </script>
</body>
</html>